<?php

namespace app\common\model;

use think\Model;

class MbtiTests extends Model
{
    protected $table = 'mbti_tests';

    public function getOrder($orderNo)
    {
        return self::where('order_no', $orderNo)->find();
    }

    public function detail()
    {
        return $this->hasOne(MbtiOrder::class, 'business_order_no', 'order_no')->where('order_type',0);
    }
}